package com.zsh.controller;

import com.zsh.service.JrebelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/***
 * @author zsh
 * @since 1.0 2021/8/29 17:29
 */
@RestController
@RequestMapping("jrebel")
public class JrebelController {

    @Resource
    private JrebelService jrebelService;

    @RequestMapping("test")
    public Map<String, String> test() {
        Map<String, String> map = new HashMap<>();
        map.put("Jrebel", "zsh");
        return map;
    }

    @RequestMapping("test1")
    public String test1() {
        return jrebelService.info();
    }
}
